package com.ai.service.made;

import com.ai.common.CommonResponse;
import com.ai.entity.made.RegionManage;
import com.ai.model.param.RegionStaticsViolationParam;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiaok
 * @since 2023-07-24
 */
public interface IRegionManageService extends IService<RegionManage> {

    CommonResponse getList();

    CommonResponse getBindList(String id);

    CommonResponse manageCamera(String id, List<String> cameraIds);

    CommonResponse getBindListID(String id);

    CommonResponse getRegionList();

    CommonResponse statisticsViolation(RegionStaticsViolationParam regionStaticsViolationParam);

    CommonResponse cameraStatistics();


    CommonResponse topFiveViolations();

    CommonResponse regionalViolation();

    CommonResponse deviceInformation();

    /**
     * 删除指定区域与摄像头之间的绑定关系
     * @param id
     */
    void removeRelationByRegionId(String id);

    /**
     * 根据摄像头id获取区域名称
     * @param id 摄像头id
     * @return
     */
    String getRegionByCameraId(Integer id);
}
